﻿<phone:PhoneApplicationPage 
    x:Class="ActivityTracker.Views.Help.TrackLocation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,0">
            <TextBlock x:Name="ApplicationTitle" Text="ACTIVITY TRACKER - TRACK LOCATION" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" Height="700">
            <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,17,12,0" Height="1200">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,0">
                    <TextBlock Text="1." Margin="10,0,10,0" FontSize="26"  />
                    <TextBlock Width="410" FontSize="26"
                 Text="To start location tracking for a particular activity there are some settings which should be checked." TextWrapping="Wrap"/>
                </StackPanel>
                <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0,15,0,0">
                    <TextBlock Text="2." Margin="10,0,10,0" FontSize="26"  />
                    <TextBlock Width="410" FontSize="26"
                 Text="Firstly, You have to allow the location services for this application. If you didn't allow for the first time, uninstall and install the application and click on allow button when the popup shows." TextWrapping="Wrap"/>
                </StackPanel>
                <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,15,0,0">
                    <TextBlock Text="3." Margin="10,0,10,0" FontSize="26"  />
                    <TextBlock Width="410" FontSize="26"
                 Text="Then the location tracking setting should be enabled for that particular activity. To check this, Go to MyActivities page, select an activity and click on edit button and enable location tracking." TextWrapping="Wrap"/>
                </StackPanel>
                <StackPanel Grid.Row="3" Orientation="Horizontal" Margin="0,15,0,0">
                    <TextBlock Text="4." Margin="10,0,10,0" FontSize="26"  />
                    <TextBlock Width="410" FontSize="26"
                 Text="Then the location service button in the settings page should be enabled." TextWrapping="Wrap"/>
                </StackPanel>
                <StackPanel Grid.Row="4" Orientation="Horizontal" Margin="0,15,0,0">
                    <TextBlock Text="5" Margin="10,0,10,0" FontSize="26"  />
                    <TextBlock Width="410" FontSize="26"
                 Text="If you want to track the location when the activity is running under lock screen, you have to enable the 'Run Application Under Lock screen' button in the setting page." TextWrapping="Wrap"/>
                </StackPanel>
                <StackPanel Grid.Row="5" Orientation="Horizontal" Margin="0,15,0,0">
                    <TextBlock Text="6." Margin="10,0,10,0" FontSize="26"  />
                    <TextBlock Width="410" FontSize="26"
                 Text="By default, the location accuracy is set to Default to consume less batery. If you want to change this setting click on the box beside the Location Accuracy text in the settings page and select High. If you set to High the battery consumption will be high. It is prefered to run in Default mode." TextWrapping="Wrap"/>
                </StackPanel>
            </Grid>
        </ScrollViewer>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsMenuEnabled="True" IsVisible="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.transport.play.rest.png" Text="you tube" Click="ApplicationBarIconButton_Click">
            </shell:ApplicationBarIconButton> 
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
     
    </phone:PhoneApplicationPage>
